package com.lanqiao.attendance.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

@Data
public class ClassPartVo {
    private String name;
    private String teacherName;
    private String detail;
    private long classRelNum;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp startTime;

    public ClassPartVo(String name, String teacherName, String detail, long classRelNum, Timestamp startTime) {
        this.name = name;
        this.teacherName = teacherName;
        this.detail = detail;
        this.classRelNum = classRelNum;
        this.startTime = startTime;
    }

    public ClassPartVo() {
    }
}
